﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="XWord.Fundamental.Domain" namespace="XWord.Fundamental.Domain">
  <class name ="Word" dynamic-update="true">
    <id name="Id" column="Id">
      <generator class="guid.comb"/>
    </id>

    <property name="Name"/>
    <property name="Comment"/>
    <property name="Audio"/>
    <property name="Pron"/>
    <property name="IsCET4"/>
    <property name="IsHighSchool"/>
    <property name="IsIgnore"/>
    <property name="IsHighFrequency"/>
    <property name="UpdateTime"/>
    <property name="CreateTime"/>
    
    <property name="WordIndex" not-null="false"/>
    <property name="Suffix"/>

    <!--<set name="Sentences" table="WordSentence" batch-size="10">
      <key column="WordId"/>
      <many-to-many column="SentenceId"
       unique="true"
       class="Sentence"/>
    </set>

    <set name="Categorys" table="CategoryWord">
      <key column="WordId"/>
      <many-to-many column="CategoryId"
       unique="true"
       class="Category"/>
    </set>

    <set name="Etyma" table="EtymaWord">
      <key column="WordId"/>
      <many-to-many column="EtymaId"
       unique="true"
       class="Etyma"/>
    </set>-->
  </class>
</hibernate-mapping>